package com.bc.bcmodel.req;

import com.bc.bcmodel.Entity;
import com.bc.commoncore.util.StringUtils;
import com.bc.commonentity.enums.HttpReturnRnums;

/**
 * Created by lianzerong on 2018/8/23.
 */
public class UserActivateReq extends Entity {
    private static final long serialVersionUID = 7581677296137816198L;
    private String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public HttpReturnRnums paramsCheck() {
        if (StringUtils.isEmpty(getCode())) {
            return HttpReturnRnums.ParaError;
        }

        return HttpReturnRnums.Success;
    }
}
